package com.zs.service;

import com.zs.spring.TestApplicationContext;

/**
 * @Author: zhengshan
 * @CreateTime: 2024-06-17
 * @Description: 测试spring源码
 * @Version 1.0
 */
public class Test {

    public static void main(String[] args) {
        TestApplicationContext applicationContext = new TestApplicationContext(AppConfig.class);
        TestInterface testService = (TestInterface)applicationContext.getBean("testService");

        System.out.println("--------------" + applicationContext.getBean("testService"));
        System.out.println(applicationContext.getBean("testService"));
        System.out.println(applicationContext.getBean("testService"));
        testService.test();

    }
}
